// ignore_for_file: unused_local_variable
import '../../app_views.dart';

/// 首页状态管理 - Home State Management
///
/// 管理首页的所有状态变量
/// Manages all state variables for home page
class HomeState {
  /// 今日信息 - Today's info (calendar + basic fortune summary)
  TodayInfo? todayInfo;

  /// 错误信息 - Error message
  String? errorMessage;

  /// 是否正在加载 - Whether loading
  bool isLoading;

  /// 是否正在刷新 - Whether refreshing
  bool isRefreshing;

  /// 运势加载状态 - Fortune loading state
  bool isLoadingFortune;

  /// 万年历加载状态 - Calendar loading state
  bool isLoadingCalendar;

  /// 每日运势数据 - Daily fortune data
  Map<String, dynamic>? dailyFortune;

  /// 万年历数据 - Calendar data
  CalendarInfo? calendarInfo;

  /// 推荐功能列表 - Recommended features list
  List<FeatureItem> recommendedFeatures;

  HomeState({
    this.todayInfo,
    this.errorMessage,
    this.isLoading = false,
    this.isRefreshing = false,
    this.isLoadingFortune = false,
    this.isLoadingCalendar = false,
    this.dailyFortune,
    this.calendarInfo,
    this.recommendedFeatures = const [],
  });
}
